#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# @Project : chat_model 
# @File    : knowledge_model.py
# @IDE     : PyCharm 
# @Author  :ZH
# @Time    : 2025/1/10 15:03
from tortoise import fields

from apps.models.base_model import BaseModel


class Knowledge(BaseModel):
    __doc__ = "知识库服务配置表"
    knowledge_name = fields.CharField(max_length=256, null=False, description='知识库名称')
    description = fields.CharField(max_length=256, null=True, description='描述')
    embedding_server_id = fields.IntField(null=False, description='向量服务id')
    # file_extract_id = fields.IntField(null=False, description='文件提取服务id')
    user_id = fields.IntField(null=False, description='用户id')

    class Meta:
        table = "knowledge"
        table_description = "知识库服务配置表"
